package java1;

public class Student {
	//成员属性：静态特征，数据的封装
	String number;
	String name;
	int age;
	//重写toString方法
	public String toString() {
		return number + "," + name + "," + age;
	}
	//成员方法，动态特征
	void study() {
		System.out.println("学生学习...");
	}
	//静态成员：成员属性、成员方法
	static String colleageName;
	
	//构造方法：创建类的对象（实例化对象）
	public Student() {
		
	}
	public Student(String _number) {
		 this.number = _number;
	}
	public Student(String number,String name,int age) {
		super();
		this.number=number;
		this.name=name;
		this.age=age;
	}

}
